<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFLineCountingRepresenter.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">HFLineCountingRepresenter.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_h_f_line_counting_representer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//  HFLineCountingRepresenter.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//  HexFiend_2</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  Copyright 2007 ridiculous_fish. All rights reserved.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#import &lt;HexFiend/HFRepresenter.h&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="_h_f_line_counting_representer_8h.html#a8fce276601dd1b62bdb59eba373f56e5">   13</a></span>&#160;<span class="keyword">typedef</span> NS_ENUM(NSUInteger, <a class="code" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2e">HFLineNumberFormat</a>) {</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2eae551fea869219d6fb297f904492f5ccc">   14</a></span>&#160;    <a class="code" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2eae551fea869219d6fb297f904492f5ccc">HFLineNumberFormatDecimal</a>, </div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2ea8acffc17c8abb8fac3f2327c2e5ffe66">   15</a></span>&#160;    <a class="code" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2ea8acffc17c8abb8fac3f2327c2e5ffe66">HFLineNumberFormatHexadecimal</a>, </div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2ea672bd987a849e3d8b138cd1ad23c1eca">   16</a></span>&#160;    <a class="code" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2ea672bd987a849e3d8b138cd1ad23c1eca">HFLineNumberFormatMAXIMUM</a> </div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;};</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html">   24</a></span>&#160;<span class="keyword">@interface </span><a class="code" href="interface_h_f_line_counting_representer.html">HFLineCountingRepresenter</a> : <a class="code" href="interface_h_f_representer.html">HFRepresenter</a> {</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    CGFloat lineHeight;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    NSUInteger digitsToRepresentContentsLength;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#a917c1d5435fd0208bbfd09c9fba10eec">   27</a></span>&#160;    NSUInteger <a class="code" href="interface_h_f_line_counting_representer.html#a917c1d5435fd0208bbfd09c9fba10eec">minimumDigitCount</a>;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2e">HFLineNumberFormat</a> <a class="code" href="interface_h_f_line_counting_representer.html#a67a5ca9652246b4e0fbad8aaf6398751">lineNumberFormat</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    NSInteger <a class="code" href="interface_h_f_line_counting_representer.html#a5907cfd3693a641493d11241e606890f">interiorShadowEdge</a>;</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#a0623bcf451815efb7424fed845986821">   30</a></span>&#160;    CGFloat <a class="code" href="interface_h_f_line_counting_representer.html#ae4f9efe156f6d144487c8c7cbf43f679">preferredWidth</a>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    CGFloat digitAdvance;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;}</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#ae4f9efe156f6d144487c8c7cbf43f679">   33</a></span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">@property</span> (nonatomic) NSUInteger <a class="code" href="interface_h_f_line_counting_representer.html#a917c1d5435fd0208bbfd09c9fba10eec">minimumDigitCount</a>;</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#a67a5ca9652246b4e0fbad8aaf6398751">   36</a></span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">@property</span> (readonly) NSUInteger <a class="code" href="interface_h_f_line_counting_representer.html#a0623bcf451815efb7424fed845986821">digitCount</a>;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">@property</span> (readonly) CGFloat <a class="code" href="interface_h_f_line_counting_representer.html#ae4f9efe156f6d144487c8c7cbf43f679">preferredWidth</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#a5907cfd3693a641493d11241e606890f">   42</a></span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">@property</span> (nonatomic) <a class="code" href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2e">HFLineNumberFormat</a> <a class="code" href="interface_h_f_line_counting_representer.html#a67a5ca9652246b4e0fbad8aaf6398751">lineNumberFormat</a>;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#a08051178f23c25c80d1dd0e7034930a8">   45</a></span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;- (void)<a class="code" href="interface_h_f_line_counting_representer.html#aa303df41e6d3259a0125bf387a80ae3c">cycleLineNumberFormat</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#a3598bdd028eaea3c377171b0870dde91">   48</a></span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">@property</span> (nonatomic) NSInteger <a class="code" href="interface_h_f_line_counting_representer.html#a5907cfd3693a641493d11241e606890f">interiorShadowEdge</a>;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="interface_h_f_line_counting_representer.html#a0ab44d5d715a26e07b14801ff7776022">   51</a></span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">@property</span> (nonatomic, copy) NSColor *<a class="code" href="interface_h_f_line_counting_representer.html#a08051178f23c25c80d1dd0e7034930a8">borderColor</a>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword">@property</span> (nonatomic) NSInteger <a class="code" href="interface_h_f_line_counting_representer.html#a3598bdd028eaea3c377171b0870dde91">borderedEdges</a>;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="keyword">@property</span> (nonatomic, copy) NSColor *<a class="code" href="interface_h_f_line_counting_representer.html#a0ab44d5d715a26e07b14801ff7776022">backgroundColor</a>;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keyword">@end</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keyword">extern</span> NSString *<span class="keyword">const</span> <a class="code" href="_h_f_line_counting_representer_8h.html#af93e2e1eedb73ea1f923b3db0cb7f193">HFLineCountingRepresenterMinimumViewWidthChanged</a>;</div><div class="ttc" id="interface_h_f_line_counting_representer_html"><div class="ttname"><a href="interface_h_f_line_counting_representer.html">HFLineCountingRepresenter</a></div><div class="ttdoc">The HFRepresenter used to show the &quot;line number gutter.&quot;. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:24</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_a3598bdd028eaea3c377171b0870dde91"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#a3598bdd028eaea3c377171b0870dde91">HFLineCountingRepresenter::borderedEdges</a></div><div class="ttdeci">NSInteger borderedEdges</div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:48</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_a0623bcf451815efb7424fed845986821"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#a0623bcf451815efb7424fed845986821">HFLineCountingRepresenter::digitCount</a></div><div class="ttdeci">NSUInteger digitCount</div><div class="ttdoc">The number of digits we are making space for. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:30</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_a917c1d5435fd0208bbfd09c9fba10eec"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#a917c1d5435fd0208bbfd09c9fba10eec">HFLineCountingRepresenter::minimumDigitCount</a></div><div class="ttdeci">NSUInteger minimumDigitCount</div><div class="ttdoc">The minimum digit count. The receiver will always ensure it is big enough to display at least the min...</div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:27</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_a08051178f23c25c80d1dd0e7034930a8"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#a08051178f23c25c80d1dd0e7034930a8">HFLineCountingRepresenter::borderColor</a></div><div class="ttdeci">NSColor * borderColor</div><div class="ttdoc">The border color used at the edges specified by -borderedEdges. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:45</div></div>
<div class="ttc" id="interface_h_f_representer_html"><div class="ttname"><a href="interface_h_f_representer.html">HFRepresenter</a></div><div class="ttdoc">The principal view class of Hex Fiend&amp;#39;s MVC architecture. </div><div class="ttdef"><b>Definition:</b> HFRepresenter.h:29</div></div>
<div class="ttc" id="_h_f_line_counting_representer_8h_html_ab910967284ab6c817dbd44531c4a3a2e"><div class="ttname"><a href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2e">HFLineNumberFormat</a></div><div class="ttdeci">HFLineNumberFormat</div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:13</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_ae4f9efe156f6d144487c8c7cbf43f679"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#ae4f9efe156f6d144487c8c7cbf43f679">HFLineCountingRepresenter::preferredWidth</a></div><div class="ttdeci">CGFloat preferredWidth</div><div class="ttdoc">The current width that the HFRepresenter prefers to be laid out with. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:33</div></div>
<div class="ttc" id="_h_f_line_counting_representer_8h_html_ab910967284ab6c817dbd44531c4a3a2ea8acffc17c8abb8fac3f2327c2e5ffe66"><div class="ttname"><a href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2ea8acffc17c8abb8fac3f2327c2e5ffe66">HFLineNumberFormatHexadecimal</a></div><div class="ttdoc">Hexadecimal line numbers. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:15</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_a67a5ca9652246b4e0fbad8aaf6398751"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#a67a5ca9652246b4e0fbad8aaf6398751">HFLineCountingRepresenter::lineNumberFormat</a></div><div class="ttdeci">HFLineNumberFormat lineNumberFormat</div><div class="ttdoc">The line number format. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:36</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_a5907cfd3693a641493d11241e606890f"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#a5907cfd3693a641493d11241e606890f">HFLineCountingRepresenter::interiorShadowEdge</a></div><div class="ttdeci">NSInteger interiorShadowEdge</div><div class="ttdoc">The edge (as an NSRectEdge) on which the view draws an interior shadow. -1 means no edge...</div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:42</div></div>
<div class="ttc" id="_h_f_line_counting_representer_8h_html_ab910967284ab6c817dbd44531c4a3a2ea672bd987a849e3d8b138cd1ad23c1eca"><div class="ttname"><a href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2ea672bd987a849e3d8b138cd1ad23c1eca">HFLineNumberFormatMAXIMUM</a></div><div class="ttdoc">One more than the maximum valid line number format, so that line number formats can be cycled through...</div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:16</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_a0ab44d5d715a26e07b14801ff7776022"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#a0ab44d5d715a26e07b14801ff7776022">HFLineCountingRepresenter::backgroundColor</a></div><div class="ttdeci">NSColor * backgroundColor</div><div class="ttdoc">The background color. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:51</div></div>
<div class="ttc" id="interface_h_f_line_counting_representer_html_aa303df41e6d3259a0125bf387a80ae3c"><div class="ttname"><a href="interface_h_f_line_counting_representer.html#aa303df41e6d3259a0125bf387a80ae3c">-[HFLineCountingRepresenter cycleLineNumberFormat]</a></div><div class="ttdeci">void cycleLineNumberFormat()</div><div class="ttdoc">Switches to the next line number format. This is called from the view. </div></div>
<div class="ttc" id="_h_f_line_counting_representer_8h_html_ab910967284ab6c817dbd44531c4a3a2eae551fea869219d6fb297f904492f5ccc"><div class="ttname"><a href="_h_f_line_counting_representer_8h.html#ab910967284ab6c817dbd44531c4a3a2eae551fea869219d6fb297f904492f5ccc">HFLineNumberFormatDecimal</a></div><div class="ttdoc">Decimal line numbers. </div><div class="ttdef"><b>Definition:</b> HFLineCountingRepresenter.h:14</div></div>
<div class="ttc" id="_h_f_line_counting_representer_8h_html_af93e2e1eedb73ea1f923b3db0cb7f193"><div class="ttname"><a href="_h_f_line_counting_representer_8h.html#af93e2e1eedb73ea1f923b3db0cb7f193">HFLineCountingRepresenterMinimumViewWidthChanged</a></div><div class="ttdeci">NSString *const HFLineCountingRepresenterMinimumViewWidthChanged</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
